home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol A-4 / (Vol A-4) Vol. A4.iso / Games / smashing.swf / scripts / DefineSprite_71_mcBonusFalling / frame_3 / DoAction.as
Text File  |  2008-03-12  |  371b  |  23 lines

  1. if(!_parent.gamePaused)
  2. {
  3.    if(_parent.pad.hitTest(_X,_Y,true) && !bonusGrabbed)
  4.    {
  5.       bonusGrabbed = true;
  6.       gotoAndPlay(4);
  7.    }
  8.    else if(_parent.bottomWall < _Y)
  9.    {
  10.       lost = true;
  11.       gotoAndPlay(4);
  12.    }
  13.    else
  14.    {
  15.       _Y = _Y + 3;
  16.       gotoAndPlay(_currentframe - 1);
  17.    }
  18. }
  19. else
  20. {
  21.    gotoAndPlay(_currentframe - 1);
  22. }
  23.